#include <stdio.h>

int addTotop(int top)
{
  int res =0 ;
  int i=1;
  for(;i<=top;i++)
  {
    res=res+i;
  }

  return res;
}

int main()
{
  printf("debug begin\n");

  int top = 100;
  int sum = addTotop(top);


  printf("%d\n",sum);
  printf("debug end\n");

  return 0;
}
